package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 系统内部消息通知对象 sys_message
 *
 * @author ruoyi
 * @date 2024-06-09
 */
public class SysMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Long messageId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private Long receiveId;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long sendId;


    private Long deptId;



    /** 消息内容 */
    @Excel(name = "消息内容")
    private String message;

    /** 消息状态 */
    @Excel(name = "消息状态")
    private Integer status;



    public void setMessageId(Long messageId)
    {
        this.messageId = messageId;
    }

    public Long getMessageId()
    {
        return messageId;
    }
    public void setReceiveId(Long receiveId)
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId()
    {
        return receiveId;
    }
    public void setSendId(Long sendId)
    {
        this.sendId = sendId;
    }

    public Long getSendId()
    {
        return sendId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getMessage()
    {
        return message;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("messageId", getMessageId())
                .append("receiveId", getReceiveId())
                .append("sendId", getSendId())
                .append("message", getMessage())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .toString();
    }
}
